package thread.synchronizedtest;
/**
 * 线程A要执行A方法
 *
 * */

public class ThreadA extends Thread {
    private ObjectService objectService;
    public ThreadA(ObjectService objectService){
        super();
        this.objectService=objectService;
    }
    @Override
    public void run() {
        super.run();
        objectService.serviceMethodA();
    }
}